var express = require('express')
var bodyParser = require('body-parser')

var app = express()
app.use(express.static('index'))
app.use(bodyParser.urlencoded({extended: false}))
app.get('/comment', function(request, response){
	var petname = request.query.petname
	var evaluate = request.query.evaluate
	
	console.dir(request.query)
	response.status(200).send(
		'<dl>' + 
		'<dt>昵称：</dt>' + 
		'<dd>' + petname + '</dd>' + 
		'<dt>评价：</dt>' + 
		'<dd>' + evaluate + '</dd>' + 
		'<dl>'
	)
})

app.listen(3000, () => console.log('Server Running...'))
